home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / UTILITIE / CONVERSI / 1396.ZIP / DUP.DOC < prev    next >
Text File  |  1986-12-22  |  974b  |  25 lines

  1. -------------------------------------------------------------------------------
  2.  DUP
  3. -------------------------------------------------------------------------------
  4. Summary:
  5.  
  6.      dup [< filename] 
  7.  
  8. DUP is a text filter that creates a unique list of all the duplicate lines in 
  9. a file; given a sorted list as its input.
  10.  
  11. Examples:
  12.  
  13. Create a list of the duplicate words in FILE1 and FILE2.
  14.  
  15.      copy file1+file2 temp                  Make one file.
  16.      sort < temp | dup > result             Sort file and save in RESULT.
  17.      del temp                               Garbage collection.
  18.  
  19. Make a list of the redundant files in two subdirectories named ONE and TWO.
  20.  
  21.      dir one > temp                         Take the directory of ONE.
  22.      dir two >> temp                        Add to it the directory of TWO.
  23.      sort < temp | dup > result             Sort file and save in RESULT.
  24.      del temp                               Garbage collection.
  25.